<jsp:root 
		  xmlns:jsp="http://java.sun.com/JSP/Page" 
          xmlns:stl="http://ns.inria.fr/sewese/semtags/" 
          xmlns:c="http://java.sun.com/jsp/jstl/core#" 
          xmlns:fn="http://java.sun.com/jsp/jstl/functions#"
          version="2.0">

<jsp:output omit-xml-declaration="yes" />
<jsp:output doctype-root-element="html"
     doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
<jsp:directive.page contentType="text/html;charset=UTF-8" />
<c:if test="${empty applicationScope['defaultEngineWrapper']}">
	<stl:init ontoDir="WEB-INF/data/schemas" annotDir="WEB-INF/data/annotations" ruleDir="WEB-INF/data/rules" sfm="http://www.polytech.unice.fr/semanticfm#"/>
</c:if>	

	<jsp:include page="header.jsp" flush="true">
	    <jsp:param name="titre" value="Related Artists"/>
	</jsp:include>
	<div id="colcentre">
	<h2>Related Artists</h2>
			<div>
				<ul>
					<stl:for-each-result query="select ?nom ?image WHERE {?x a sfm:Artist. ?x sfm:name ?nom. ?x sfm:pic ?image. ?x sfm:tagged ?relatedtag. ?relatedtag sfm:tag ?tag. ?tag sfm:tagName '${param['tag']}'. ?relatedtag sfm:count ?count} ORDER BY DESC(?count) LIMIT 10" >
						<li><div class="album"><a href="artiste.jsp?artiste=${stl:encode(nom)}"><img class="pochette" src='${image}' width="50px" height="50px"/></a><a href="artiste.jsp?artiste=${stl:encode(nom)}">${nom}</a> </div></li>
					</stl:for-each-result>
				</ul>
			</div>
	</div>
	<jsp:include page="footer.jsp" flush="true"/>
</jsp:root>